﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace Microsoft.ResourceManagement.Samples.ResourceManagementClient.WSEnumerate
{
    [Serializable, XmlRoot(Namespace = "http://schemas.microsoft.com/2006/11/ResourceManagement", IsNullable = true), XmlType(Namespace = "http://schemas.microsoft.com/2006/11/ResourceManagement")]
    public class Sorting
    {
        // Fields
        private string dialectField = "http://schemas.xmlsoap.org/ws/2006/08/resourceTransfer/Dialect/QName";
        private SortingAttribute[] sortingAttributes;

        // Properties
        [XmlAttribute(AttributeName = "Dialect", DataType = "anyURI")]
        public string Dialect
        {
            get
            {
                return this.dialectField;
            }
            set
            {
                this.dialectField = value;
            }
        }

        [XmlElement(ElementName = "SortingAttribute")]
        public SortingAttribute[] SortingAttributes
        {
            get
            {
                return this.sortingAttributes;
            }
            set
            {
                this.sortingAttributes = value;
            }
        }
    }


}
